#include "AIFollowState.h"

#include "..\Definitions.h"
#include "..\Game Objects\Player.h"
#include "..\Game Objects\Enemy.h"

AIFollowState::AIFollowState()
{
}


AIFollowState::~AIFollowState()
{
}

void AIFollowState::Update(Enemy* enemy, float dt)
{
	if (GAME->GetPlayer()->GetPosition().x < enemy->GetPosition().x)
		enemy->IsMovingLeft(true);
	else
		enemy->IsMovingLeft(false);
}